#coding:utf-8
import time
import uuid
import json

time_str = time.strftime("%Y-%m-%d %H:%M:%S")
time_rod = str(uuid.uuid1())[10:25].replace("-","")
result = {}
def prase_content(content):
    #解析报文
    try:
        test = str(content).format(timestr=time_str, time_rod=time_rod)
        result["res"] = test

    except Exception as e:
        result["res"] = str(e) + " unable to parse"

    return json.dumps(result)


if __name__ == '__main__':
	
	print prase_content("{timestr}")